﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoboTrocity.Code.ObjectStates {
	class BulletCollidingState : BulletState {

		public BulletCollidingState(Bullet bullet, Sprite newSprite)
			: base(bullet, newSprite) {
		}

		public override void PropelBullet() {
			//no propelling
		}

		public override void Collide() {}

		public override void Update(float elapsed) {
			IncrementStateTime(elapsed);
			if (TimeInState > StateSprite.RunningTime) {
				AttachedBullet.CurrentState = new DeleteState();
			}
		}
	}
}
